package br.com.estoquecontrole;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class LoginInicial extends Activity {

	EditText login, senha;
	Button verificar;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login_inicial);
		//Fernanda
		login = (EditText) findViewById(R.id.edtlogin);
		senha = (EditText) findViewById(R.id.edtSenha);
		
		verificar = (Button) findViewById(R.id.btVerificar);
		
		verificar.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent telaLogin = new Intent(LoginInicial.this, Principal.class);
				startActivity(telaLogin);
				LoginInicial.this.finish();
			}
		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.login_inicial, menu);
		return true;
	}

}
